﻿<!DOCTYPE html PUBLIC "-//W3C//DTD//XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS Test: The 'order' property on flex items set to a value of '-1'</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#order" />
        <meta name="flags" content="">
        <meta name="assert" content="This test checks that a flex container will lay out its content in the order specified by the ordinal groups." />
        <style type="text/css">
            #parent
            {
                position: relative;
            }
            div div
            {
                display: flex;
                flex-flow: row;
            }
            div p
            {
                margin: 0;
            }
            span, div p
            {
                height: 50px;
                width: 75px;
            }
            #flexItem1
            {
                order: 0;
            }
            #flexItem2
            {
                background-color: red;
                order: -1;
            }
            span
            {
                position: absolute;
            }
            span, #flexItem1
            {
                background-color: green;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is no red visible on the page.</p>
        <div id="parent">
            <span></span>
            <div>
                <p id="flexItem1"></p>
                <p id="flexItem2"></p>
            </div>
        </div>
    </body>
</html>